home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / IDL / Arbitrat.idl next >
Encoding:
Text File  |  1997-02-13  |  2.6 KB  |  105 lines  |  [TEXT/MPS ]

  1. //#    Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  2.  
  3. #ifndef _ARBITRAT_
  4. #define _ARBITRAT_
  5.  
  6. #ifndef _ODOBJECT_
  7. #include "ODObject.idl"
  8. #endif
  9.  
  10. //=====================================================================================
  11. // Class defined in this interface
  12. //=====================================================================================
  13.  
  14. interface  ODArbitrator;
  15.  
  16. //=====================================================================================
  17. // Classes used by this interface
  18. //=====================================================================================
  19.  
  20. interface  ODFocusModule;
  21. interface  ODFocusSet;
  22. interface  ODFocusOwnerIterator;
  23. interface  ODFrame;
  24.  
  25.  
  26.  
  27. //=====================================================================================
  28. // Class ODArbitrator
  29. //=====================================================================================
  30.  
  31. interface ODArbitrator :  ODObject
  32. {    
  33.    ODBoolean RequestFocusSet(in ODFocusSet focusSet,
  34.                                  in ODFrame requestingFrame);
  35.     
  36.    ODBoolean RequestFocus(in ODTypeToken focus,
  37.                               in ODFrame requestingFrame);
  38.         
  39.    void RelinquishFocusSet(in ODFocusSet focusSet,
  40.                               in ODFrame relinquishingFrame);
  41.         
  42.    void RelinquishFocus(in ODTypeToken focus,
  43.                            in ODFrame relinquishingFrame);
  44.   
  45.    void TransferFocus(in ODTypeToken focus,
  46.                          in ODFrame transferringFrame,
  47.                       in ODFrame newOwner);
  48.                  
  49.    void TransferFocusSet(in ODFocusSet focusSet, 
  50.                            in ODFrame transferringFrame,
  51.                         in ODFrame newOwner);
  52.                  
  53.    ODFrame AcquireFocusOwner(in ODTypeToken focus);
  54.     
  55.    ODFocusOwnerIterator CreateOwnerIterator(in ODTypeToken focus);
  56.           
  57.    void RegisterFocus(in ODTypeToken focus,
  58.                          in ODFocusModule focusModule);
  59.       
  60.    void UnregisterFocus(in ODTypeToken focus);
  61.  
  62.    ODBoolean IsFocusRegistered(in ODTypeToken focus);
  63.   
  64.    ODBoolean IsFocusExclusive(in ODTypeToken focus);
  65.   
  66.    ODFocusModule GetFocusModule(in ODTypeToken focus);
  67.    
  68.    ODFocusSet CreateFocusSet();
  69.  
  70.  
  71. #ifdef __SOMIDL__
  72.     implementation
  73.     {
  74.         majorversion = 1; minorversion = 0;
  75.         
  76.         functionprefix = ODArbitrator;
  77.         
  78.         override:
  79.             somUninit,
  80.             Purge;
  81.         releaseorder:
  82.             RequestFocusSet,
  83.             RequestFocus,
  84.             RelinquishFocusSet,
  85.             RelinquishFocus,
  86.             TransferFocus,
  87.             TransferFocusSet,
  88.             AcquireFocusOwner,
  89.             CreateOwnerIterator,
  90.             RegisterFocus,
  91.             UnregisterFocus,
  92.             IsFocusRegistered,
  93.             IsFocusExclusive,
  94.             GetFocusModule,
  95.             CreateFocusSet,
  96.             reserved1;
  97.  
  98.  
  99.     
  100.   };
  101. #endif //# __SOMIDL__
  102. };
  103.  
  104. #endif //# _ARBITRAT_
  105.